#include<bits/stdc++.h>
using namespace std;
int n;
int m[100001];
int main(){
    freopen("duel.in","r",stdin);
    freopen("duel.out","w",stdout);
    cin>>n;
    int minr= 100000,maxr=0;
    for(int i=1;i<=n;i++){
        int r;
        cin>>r;
        m[r]++;
        if(minr>r)minr=r;
        if(maxr<r)maxr=r;
    }
    int ans=0;
    int sm=minr;
    for(int i=minr+1;i<=maxr+1;i++){
        if(m[i]){
            if(m[sm]>=m[i]){
                m[i]+=m[sm]-m[i];
            }
            sm=i;
        }
        
    }
    ans=m[maxr];
    cout<<ans<<endl;
    return 0;
}